// eslint-disable-next-line
import {BasicLayout, UserLayout} from '@/layouts'

export const asyncRouterMap = [

  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: {title: '首页'},
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('@/views/dashboard/index'),
        meta: {title: '首页', icon: 'dashboard'}
      },
      {
        path: '/organization/action',
        name: 'action',
        hidden: true,
        component: () => import('@/views/organization/action'),
        meta: { title: '机构信息', keepAlive: false, permission: [ 'ahaha' ] }
      },
      {
        path: '/test',
        name: 'test',
        hidden: true,
        component: () => import('@/views/node/info'),
      }
    ]
  }
]
/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      }
    ]
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]
